package com.sgb.kjwl.view.ui.adapter.self.website;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.self.WebsiteQualityEntity;
import com.sgb.kjwl.model.entity.transport.GoodsInfoEntity3;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class WebsiteQualityAdapter3 extends BaseRecycleAdapter<WebsiteQualityEntity> {

    public WebsiteQualityAdapter3(Context context, List<WebsiteQualityEntity> datas) {
        super(context, R.layout.item_website_quality3, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, WebsiteQualityEntity goodsInfoEntity3) {
        holder.setBinding(BR.viewModel,goodsInfoEntity3);
        ImageView img = holder.getItem().findViewById(R.id.photo_img);
        Glide.with(context).load(goodsInfoEntity3.getImage()).into(img);
    }
}
